#pragma once

#include <QObject>
#include <QVariantMap>
#include "snap7.h"

class ubSiemensPLC  : public QObject
{
	Q_OBJECT

public:
	ubSiemensPLC(QObject *parent =nullptr);

	~ubSiemensPLC();

	int writeInt(QString plcAddr, int value);

	QVariantMap readInt(QString plcAddr);
	int open(QString ctx);





private:
	TS7Client client;

};
